<title>分销商审核</title>
<link rel="stylesheet" type="text/css" href="css/distri.css"/>
<link rel="stylesheet" type="text/css" href="css/jump.css"/>
<script type="text/javascript">
function verify(mid,id,type){
	if(type==1){
		$.getJSON("call/jh_mem.php", { action:'ApplyVerify', status:1, uid:mid, dtype:1, log_id:id, msg:'' }, function(json){
			if(json['status']!='ok'){alert(json['msg']);}
			else{alert('审核已通过!');window.location.reload();}
		});
	}
	else{
		$.getJSON("call/jh_mem.php", { action:'ApplyVerify', status:2, uid:$('#mid').val(), dtype:2, log_id:$('#id').val(), msg:$('#msg').val() }, function(json){
			if(json['status']!='ok'){alert(json['msg']);}
			else{alert('审核已拒绝!');window.location.reload();}
		});
		$('#mask').hide();
	}
}
function refuse(mid,id){
	$('#refuse').show();
	$('#mask').show();
	$('#mid').val(mid);
	$('#id').val(id);
}
</script>
<style type="text/css">
#refuse{display:none;z-index:100;position: absolute;left: 50%;top: 200px;background: url(images/pkpopup_bg.png) no-repeat; width: 390px;height: 200px;padding: 5px 20px 15px; margin:-100px 0 0 -195px;}
#refuse p{height: 40px;line-height: 40px;font-size: 14px;font-weight: bold;padding: 0 7px;border-bottom: 2px solid #999; margin-bottom:15px;}
#refuse span{ margin-left:15px;}
#msg{ vertical-align:text-top; margin-top:-5px; width:280px; height:80px; padding:4px; margin-bottom:20px;}
.msgbtn{background: url(images/btn23bg2.png) repeat-x;border: 1px solid #FF8000;border-bottom-color: #F55C00;height: 25px;line-height: 23px;-moz-border-radius: 2px;-webkit-border-radius: 2px;border-radius: 2px;color: white;font-weight: bold; padding: 0 10px; cursor:pointer;}
.msgbtn:hover{background: url(images/btn23bg22.png) repeat-x;}
.closeref{cursor:pointer;display: inline-block;float: right;width: 17px;height: 17px;background: url(images/close.png) no-repeat;margin-top: 12px;}
.mar5{ margin:0 55px 0 110px;}
</style>
<!--主体-->
<div id="refuse">
	<p><a href="javascript:;" onclick="$('#refuse').hide();$('#mask').hide();" class="closeref"></a>拒绝供应商申请</p>
	<span>拒绝理由：</span>
	<textarea id="msg"></textarea>
	<input type="hidden" id="mid" />
	<input type="hidden" id="id" /><br />
	<button type="button" onclick="verify(0,0,2)" class="msgbtn mar5">拒绝</button>
	<button type="button" onclick="$('#refuse').hide();$('#mask').hide();" class="msgbtn">取消</button>
</div>
	<div class="r_content">
		<h3 class="mc_title">
			<span class="mctit_1"><span class="mctit_2">分销商审核</span></span>
		</h3>
		<div class="distsh">
			<table class="dishtab">
				<thead>
					<th>分销商名称</th>
					<th>联系人信息</th>
					<th>申请理由</th>
					<th>申请时间</th>
					<th>操作</th>
				</thead>
				<tbody>
				<?	foreach($a_sort as $v){?>
					<tr>
						<td class="tdlf">
							<a href="userinfo.html?id=<?=$v['mid']?>" target="_blank" class="comp"><?=$v['dname']."(".$v['account'].")"?></a>
						</td>
						<td><?=$v['cname']?><br /><?=$v['mobile']?></td>
						<td class="txtlf"><?=$v['data1']?></td>
						<td class="txtlf"><?=$v['creattime']?></td>
						<td>
							<a href="javascript:void(0);" onclick="verify(<?=$v['mid']?>,<?=$v['id']?>,1)" class="green">通过</a>
							|
							<a href="javascript:void(0);" onclick="refuse(<?=$v['mid']?>,<?=$v['id']?>)" class="red">拒绝</a>
						</td>
					</tr>
				<?	}?>
				</tbody>
			</table>
			<?page($total,$currentPage,$pageSize);?>
			<div class="cl"></div>
		</div>
		<!-- <div class="shinfo">
			<table class="shinfotab">
				<tr>
					<td class="txtlf">分销商名称：</td>
					<td>上海携程商务商务公司</td>
					<td class="txtlf">联系人：</td>
					<td>李某某</td>
				</tr>
				<tr>
					<td class="txtlf">公司类型：</td>
					<td>旅行社</td>
					<td class="txtlf">传真：</td>
					<td>5468751365</td>
				</tr>
				<tr>
					<td class="txtlf">手机号码：</td>
					<td>13513513555</td>
					<td class="txtlf">邮箱：</td>
					<td>35124587@qq.com</td>
				</tr>
				<tr>
					<td class="txtlf">所在地区：</td>
					<td>上海市松江区</td>
					<td class="txtlf">QQ：</td>
					<td>35124587</td>
				</tr>
				<tr>
					<td class="txtlf">具体地址：</td>
					<td>上海市松江区</td>
					<td class="txtlf">网址：</td>
					<td>www.1213.com</td>
				</tr>
				<tr>
					<td class="txtlf">申请理由：</td>
					<td colspan="3">我想分销你的旅游产品</td>
				</tr>
				<tr>
					<td colspan="4">
						<input type="button" class="toguo" value="通过" />
						<input type="button" class="jujue" value="拒绝" />
					</td>
				</tr>
			</table>
		</div> -->
	</div>